import request from '@/utils/request'

// 查询合规自查列表
export function listFundComplianceCheck(query) {
  return request({
    url: '/check/fundComplianceCheck/list',
    method: 'get',
    params: query
  })
}

// 查询合规自查详细
export function getFundComplianceCheck(id) {
  return request({
    url: '/check/fundComplianceCheck/' + id,
    method: 'get'
  })
}

// 保存合规自查
export function saveFundComplianceCheck(data) {
  return request({
    url: '/check/fundComplianceCheck/save',
    method: 'post',
    data: data
  })
}

// 删除合规自查
export function delFundComplianceCheck(id) {
  return request({
    url: '/check/fundComplianceCheck/' + id,
    method: 'delete'
  })
}

// 导出合规自查
export function exportFundComplianceCheck(query) {
  return request({
    url: '/check/fundComplianceCheck/export',
    method: 'get',
    params: query
  })
}

// 根据基金ID获取合规合查
export function getFundCheckByFundId(fundId) {
  return request({
    url: '/check/fundComplianceCheck/getFundCheckByFundId',
    method: 'get',
    params: { 'fundId': fundId }
  })
}
